/**
 * Copyright (c) 2007, Blue Hole Software. All rights reserved.
 * Code licensed under the Apache 2.0 License:
 * http://www.apache.org/licenses/
 */
package org.bhf.providers.security.authorization.dbpolicy;

import org.bhf.security.common.Role;
import org.bhf.security.common.UserID;

import java.security.Principal;

/**
 * Principals supported by the DBPolicyManager
 */
public enum PrincipalType
{
    ROLE ( Role.class),
    USER ( UserID.class );

    private Class<? extends Principal> principalClass;

    private PrincipalType( final Class<? extends Principal> principalClass )
    {
        this.principalClass = principalClass;
    }

    public Class<? extends Principal> getPrincipalClass()
    {
        return principalClass;
    }
}
